
tomenoy=function(){
	let xml;
	let id=document.getElementById('emid');
	id.innerText=getfhid();
	let t1=document.getElementById('onein');
	let t2=document.getElementById('towin');
	let t3=document.getElementById('thirdin');
	let t4=document.getElementById('nums');
	let t5=document.getElementById('sSum');
	if (window.XMLHttpRequest)
	{
	    //  IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
	    xml=new XMLHttpRequest();
	}
	else
	{
	    // IE6, IE5 浏览器执行代码
	    xml=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xml.onreadystatechange=function(){
		if(xml.readyState==4&&xml.status==200){
			if(xml.responseText!="null"&&xml.responseText!="")
			{
				let t=JSON.parse(xml.responseText);
	  			 t1.value=t[0].f_L1InstID;
	  			 t2.value=t[0].f_L2InstID;
	  			 t3.value=t[0].f_L3InstID;
	  			 t4.value=t[0].sSum;
	  			 t5.value=t.length;
			
				for(let i=0;i<t.length;i++){
				setmessage(t[i].eID,t[i].eName,t[i].sBasic,
					t[i].sTransport,t[i].sLunch,t[i].sCommunicate,
					t[i].sPension,t[i].sMedical,t[i].sUnemployment,t[i].sSum)
				}
			}
		}
	}
	xml.open("post","/rlzyglxt/si/select",true);
	xml.setRequestHeader('content-type','application/x-www-form-urlencoded');
	xml.send('fid='+id.innerText);
}
let getfhid=function(){
	let id=decodeURI(window.location .href);
    let aa=id.indexOf('=');
    if (aa>-1){
    id=id.substring(aa+1);
    }
    return id;
}
setmessage=function(fID,f_L1InstID,f_L2InstID,f_L3InstID,nums,fMemoy,k1,k2,k3,k4){
	let maxbox=document.getElementsByClassName('mymainbox')[0];	
	let box1=document.createElement('div');
	box1.className='myemployees';
	let box2=document.createElement('div');
	let box3=document.createElement('div');
	let box4=document.createElement('div');
	let box5=document.createElement('div');
	let box9=document.createElement('div');
	let box10=document.createElement('div');
	let box11=document.createElement('div');
	let box12=document.createElement('div');
	let box13=document.createElement('div');
	let box14=document.createElement('div');
	box2.className='reviewbox5';
	box3.className='reviewbox5';
	box4.className='reviewbox5';
	box5.className='reviewbox5';
	box9.className='reviewbox5';
	box10.className='reviewbox5';
	box11.className='reviewbox5';
	box12.className='reviewbox5';
	box13.className='reviewbox5';
	box14.className='reviewbox5';
	box2.innerText=fID;
	box3.innerText=f_L1InstID;
	box4.innerText=f_L2InstID;
	box5.innerText=f_L3InstID;
	box9.innerText=nums;
	box10.innerText=fMemoy;
	box11.innerText=k1;
	box12.innerText=k2;
	box13.innerText=k3;
	box14.innerText=k4;
	box1.appendChild(box2);
	box1.appendChild(box3);
	box1.appendChild(box4);
	box1.appendChild(box5);
	box1.appendChild(box9);
	box1.appendChild(box10);
	box1.appendChild(box11);
	box1.appendChild(box12);
	box1.appendChild(box13);
	box1.appendChild(box14);
	maxbox.appendChild(box1);
}
subimt=function(){
	let xml;
	let id=getfhid();
	if (window.XMLHttpRequest)
	{
	    //  IE7+, Firefox, Chrome, Opera, Safari 浏览器执行代码
	    xml=new XMLHttpRequest();
	}
	else
	{
	    // IE6, IE5 浏览器执行代码
	    xml=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xml.onreadystatechange=function(){
		if(xml.readyState==4&&xml.status==200){
			if(xml.responseText!="null"&&xml.responseText!="")
			{
				alert(xml.responseText);
			}
		}
	}
	xml.open("post","/rlzyglxt/si/update",true);
	xml.setRequestHeader('content-type','application/x-www-form-urlencoded');
	xml.send('fID='+id+'&fStatus=1');
}
